// (全站TDK规范化)[https://c.csdn.net/pages/viewpage.action?pageId=151424696]
import type { RouterConfig } from '@nuxt/schema'
import type { RouteRecordBase } from './type.d'
export default {
  // https://router.vuejs.org/zh/introduction.html
  routes: (_routes): RouteRecordBase[] => [
    {
      redirect: '/third-party',
      path: '/',
	  component: async () =>
	    await import('~/pages/ThirdParty/index.vue').then(r => r.default || r),
	  meta: {
	    'layout': 'default-with-nav',
	    'title': 'GitCode开源共创中心',
	    'reportTitle': 'GitCode开源共创中心',
	    'description': '致力于将Flutter生态适配到鸿蒙平台的开放社区，帮助具备Flutter技术栈的企业或个人开发者，快速将已上架的应用或即将开发的应用构建适配到鸿蒙平台。',
	    'keywords': 'GitCode,鸿蒙,HarmonyOS,Flutter,三方库,组件,检索,开源共创,聚合内容,赋能课程',
	    'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
	    'og:width': 48,
	    'og:height': 48
	  }
    },
    {
      name: 'news',
      path: '/news', 
      component: async () =>
        await import('~/pages/News/index.vue').then(r => r.default || r),
      meta: {
        'layout': 'default-with-nav',
        'title': '开源共创内容聚合 - GitCode开源共创中心',
        'reportTitle': '开源共创内容',
        'description': '聚焦开源共创，汇聚 G-Star、Committer、活动与文章，展示生态共建成果。',
        'keywords': '开源共创,G-Star,Committer,活动,文章,生态共建',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'news'
      },
    },
    {
      name: 'course',
      path: '/course',
      component: async () =>
        await import('~/pages/Course/index.vue').then(r => r.default || r),
      meta: {
        'layout': 'default-with-nav',
        'title': '开源共创课程中心 - GitCode开源共创中心',
        'reportTitle': '课程中心',
        'description': '面向开发者的共创赋能课程与直播回看，提升实战能力。',
        'keywords': '课程,直播回放,培训,学习,开发者赋能,开源共创',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'course'
      },
    },
    {
      name: 'activity',
      path: '/activity',
      component: async () =>
        await import('~/pages/Activity/index.vue').then(r => r.default || r),
      meta: {
        'layout': 'default-with-nav',
        'title': '开源共创活动中心 - GitCode开源共创中心',
        'reportTitle': '精彩活动',
        'description': '提供开源共创活动报名、日程与宣发，便捷参与社区共建。',
        'keywords': '活动,报名,宣发,线下沙龙,研讨会,开源共创',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'activity'
      },
    }, {
      name: 'third-party',
      path: '/third-party',
      component: async () =>
        await import('~/pages/ThirdParty/index.vue').then(r => r.default || r),
      meta: {
        'layout': 'default-with-nav',
        'title': '鸿蒙版Flutter三方库 - GitCode开源共创中心',
        'reportTitle': '鸿蒙版 Flutter 三方库',
        'description': 'GitCode开源共创生态下的HarmonyOS版Flutter三方库检索与筛选，助力快速选型与集成。',
        'keywords': '鸿蒙,HarmonyOS,Flutter,三方库,组件,检索,开源共创',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'third-party'
      },
    }, {
      name: 'search',
      path: '/search',
      component: async () =>
        await import('~/pages/Search/index.vue').then(r => r.default || r),
      meta: {
        'title': '开源共创全站搜索 - GitCode开源共创中心',
        'reportTitle': '搜索页',
        'description': '一站式搜索 三方库、文章、活动、课程、G-Star 与 Committer，快速定位所需内容。',
        'keywords': '搜索,筛查,三方库,文章,活动,课程,G-Star,Committer,开源共创',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
      },
    },
    {
      name: 'community',
      path: '/community',
      component: async () =>
        await import('~/pages/Community/index.vue').then(r => r.default || r),
      meta: {
        'layout': 'default-with-nav',
        'title': '社群矩阵 - GitCode开源共创中心',
        'reportTitle': '社群矩阵',
        'description': 'GitCode 开源共创社群矩阵，涵盖 QQ 群、微信群与企微群，便捷加入与交流。',
        'keywords': '社群,QQ群,微信群,企微群,社区',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
      },
    },
    {
      name: 'ebook',
      path: '/ebook',
      component: async () =>
        await import('~/pages/Ebook/index.vue').then(r => r.default || r),
      meta: {
        'layout': 'default-with-nav',
        'title': '电子书 - GitCode开源共创中心',
        'reportTitle': '电子书',
        'description': '展示开源共创相关电子书资源，支持外链下载与阅读。',
        'keywords': '电子书,ebook,开源共创,Flutter,鸿蒙',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
      },
    },
    {
      name: 'news-detail',
      path: '/news/:id([a-zA-Z0-9]{32})',
      component: async () =>
        await import('~/pages/NewsDetail/index.vue').then(r => r.default || r),
      meta: {
        'title': '开源共创文章详情 - GitCode开源共创中心',
        'reportTitle': '文章详情',
        'description': '展示开源共创文章详情与阅读体验，支持目录与代码高亮。',
        'keywords': '开源共创,文章,详情,G-Star,Committer',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'news'
      },
    },
    {
      name: 'activity-detail',
      path: '/activity/:id([a-zA-Z0-9]{32})',
      component: async () =>
        await import('~/pages/Activity/detail/index.vue').then(r => r.default || r),
      meta: {
        'title': '开源共创活动详情 - GitCode开源共创中心',
        'reportTitle': '活动详情',
        'description': '展示开源共创活动简介、议程与报名信息，便捷参与。',
        'keywords': '开源共创,活动,报名,日程,详情',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'activity'
      },
    },
    {
      name: 'course-detail',
      path: '/course/:id([a-zA-Z0-9]{32})',
      component: async () =>
        await import('~/pages/Course/detail/index.vue').then(r => r.default || r),
      meta: {
        'title': '开源共创课程详情 - GitCode开源共创中心',
        'reportTitle': '课程详情',
        'description': '展示课程简介、目录与回看信息，便捷学习与复盘。',
        'keywords': '开源共创,课程,回放,学习,详情',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48,
        'pType':'course'
      },
    },
    {
      name: '404',
      path: '/404',
      component: async () =>
        await import('~/pages/404/index.vue').then(r => r.default || r),
      meta: {
        'title': '404 - GitCode开源共创中心',
        'reportTitle': '404页面',
        'description': '内容暂不可用或已移除，请返回首页或使用搜索。',
        'keywords': '404,未找到,异常,错误',
        'og:image': `https://cdn-static.gitcode.com/static/images/logo-favicon.png`,
        'og:width': 48,
        'og:height': 48
      },
    },
  ]

} as RouterConfig